import request from '@/utils/request'

// 查询钱包列表
export function listBao(query) {
  return request({
    url: '/system/bao/list',
    method: 'get',
    params: query
  })
}

// 查询钱包详细
export function getBao(id) {
  return request({
    url: '/system/bao/' + id,
    method: 'get'
  })
}

// 新增钱包
export function addBao(data) {
  return request({
    url: '/system/bao',
    method: 'post',
    data: data
  })
}

// 修改钱包
export function updateBao(data) {
  return request({
    url: '/system/bao',
    method: 'put',
    data: data
  })
}

// 删除钱包
export function delBao(id) {
  return request({
    url: '/system/bao/' + id,
    method: 'delete'
  })
}
